cellrenderer: Add EXPANDED and EXPANDABLE states
authorBenjamin Otte <otte@redhat.com>
Sat, 10 Dec 2011 20:05:30 +0000 (21:05 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 16 Dec 2011 03:53:13 +0000 (04:53 +0100)
These make more sense as flags than they do as properties of the cell
renderer.

gtk/gtkcellrenderer.h

index 96e02e3fb4240a693b22aa6f09c4e0e158fe557c..1e67c62739cd39e26b699b08037a3c6821b8b9f8 100644 (file)
@@ -37,6 +37,8 @@ G_BEGIN_DECLS
  * @GTK_CELL_RENDERER_INSENSITIVE: The cell is drawn in an insensitive manner
  * @GTK_CELL_RENDERER_SORTED: The cell is in a sorted row
  * @GTK_CELL_RENDERER_FOCUSED: The cell is in the focus row.
+ * @GTK_CELL_RENDERER_EXPANDABLE: The cell is in a row that can be expanded. Since 3.4
+ * @GTK_CELL_RENDERER_EXPANDED: The cell is in a row that is expanded. Since 3.4
  *
  * Tells how a cell is to be rendererd.
  */
@@ -47,7 +49,9 @@ typedef enum
   GTK_CELL_RENDERER_INSENSITIVE = 1 << 2,
   /* this flag means the cell is in the sort column/row */
   GTK_CELL_RENDERER_SORTED      = 1 << 3,
-  GTK_CELL_RENDERER_FOCUSED     = 1 << 4
+  GTK_CELL_RENDERER_FOCUSED     = 1 << 4,
+  GTK_CELL_RENDERER_EXPANDABLE  = 1 << 5,
+  GTK_CELL_RENDERER_EXPANDED    = 1 << 6
 } GtkCellRendererState;
 
 /**